<div class="box-tools" style="top:10px;">
  <form class="form-inline" id="project—form" action="{:url('Bank/index')}" method="GET" pjax-search="">
    <div class="form-group">
      <label for="type">收益类型</label>
      <select class="form-control" name="type" id="type" style="border-radius:3px;">
        <option value="0">全部</option>
        {volist name="bankList" id="vo" key="k"}
        <option value="{$k}" {if condition="input('get.type') eq $k" }selected="selected" {/if} >{$vo}</option>
        {/volist}
      </select>
    </div>
    <div class="form-group">
      <label for="type">关键字</label>
      <input type="text" name="search" class="form-control" value="{:input('get.search')}" placeholder="按名称搜索"/>
    </div>
    <div class="form-group">
      <button type="submit" class="btn btn-primary sreachs">搜索</button>
      <button type="button" class="btn btn-primary" onclick="resetForm()">重置</button>
    </div>
  </form>
</div>
<script>
    function resetForm() {
        $('select[name="type"]').val('0')
        $('input[name="search"]').val('')
        $('#project—form').submit()
    }
</script>